import type { RouteRecordRaw } from 'vue-router';
import { layouts } from '../elegant/imports';

const valuation: RouteRecordRaw = {
  name: 'valuation',
  path: '/valuation',
  component: layouts.base,
  meta: {
    title: '估值系统',
    icon: 'carbon:analytics',
    order: 3
  },
  children: [
    // {
    //   name: 'valuation_dashboard',
    //   path: '/valuation/dashboard',
    //   component: () => import('@/views/valuation/dashboard/index.vue'),
    //   meta: {
    //     title: '估值概览',
    //     requiresAuth: true,
    //     icon: 'carbon:dashboard',
    //     order: 1
    //   }
    // },
    {
      name: 'valuation_product',
      path: '/valuation/product',
      component: () => import('@/views/valuation/product/index.vue'),
      meta: {
        title: '产品管理',
        requiresAuth: true,
        icon: 'carbon:product',
        order: 2
      }
    },
    {
      name: 'valuation_model',
      path: '/valuation/model',
      component: () => import('@/views/valuation/model/index.vue'),
      meta: {
        title: '模型管理',
        requiresAuth: true,
        icon: 'carbon:model-alt',
        order: 3
      }
    },
    {
      name: 'valuation_parameter',
      path: '/valuation/parameter',
      component: () => import('@/views/valuation/parameter/index.vue'),
      meta: {
        title: '参数管理',
        requiresAuth: true,
        icon: 'carbon:settings',
        order: 4
      }
    },
    {
      name: 'valuation_product-model-relation',
      path: '/valuation/product-model-relation',
      component: () => import('@/views/valuation/product-model-relation/index.vue'),
      meta: {
        title: '产品模型关联',
        requiresAuth: true,
        icon: 'carbon:connect',
        order: 4.5
      }
    },
    {
      name: 'valuation_product-model-mapping',
      path: '/valuation/product-model-mapping',
      component: () => import('@/views/valuation/product-model-mapping/index.vue'),
      meta: {
        title: '产品模型映射集',
        requiresAuth: true,
        icon: 'carbon:data-set',
        order: 4.6
      }
    },
    {
      name: 'valuation_dataset',
      path: '/valuation/dataset',
      component: () => import('@/views/valuation/dataset/index.vue'),
      meta: {
        title: '映射集管理',
        requiresAuth: true,
        icon: 'carbon:data-base',
        order: 4.7
      }
    },
    {
      name: 'valuation_curve-list',
      path: '/valuation/curve-list',
      component: () => import('@/views/valuation/curve-list/index.vue'),
      meta: {
        title: '曲线管理',
        requiresAuth: true,
        icon: 'carbon:chart-line',
        order: 4.8
      }
    },
    {
      name: 'valuation_curve-detail',
      path: '/valuation/curve-detail',
      component: () => import('@/views/valuation/curve-detail/index.vue'),
      meta: {
        title: '曲线详情',
        requiresAuth: true,
        hideInMenu: true,
        activeMenu: 'valuation_curve-list'
      }
    }
    // {
    //   name: 'valuation_task',
    //   path: '/valuation/task',
    //   component: () => import('@/views/valuation/task/index.vue'),
    //   meta: {
    //     title: '估值任务',
    //     requiresAuth: true,
    //     icon: 'carbon:task',
    //     order: 5
    //   }
    // },
    // {
    //   name: 'valuation_preparation',
    //   path: '/valuation/preparation',
    //   component: () => import('@/views/valuation/preparation/index.vue'),
    //   meta: {
    //     title: '估值准备',
    //     requiresAuth: true,
    //     icon: 'carbon:play',
    //     order: 6
    //   }
    // },
    // {
    //   name: 'valuation_monitor',
    //   path: '/valuation/monitor',
    //   component: () => import('@/views/valuation/monitor/index.vue'),
    //   meta: {
    //     title: '任务监控',
    //     requiresAuth: true,
    //     icon: 'carbon:monitor',
    //     order: 7
    //   }
    // }
  ]
};

export default valuation;
